import { Model } from "@vuex-orm/core";

export default class Defect extends Model {
  // This is the name used as module name of the Vuex Store.
  static entity = "defects";

  // List of all fields (schema) of the post model. `this.attr` is used
  // for the generic field type. The argument is the default value.
  static fields() {
    return {
      id: this.attr(null),
      feedback: this.attr(""),
      opinions: this.attr(""),
      reporter: this.attr(""),
      reportTitle: this.attr(""),
      status: this.attr(1),
      type: this.attr(0)
    };
  }
}
